package com.example.auth.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.auth.entity.SysRoleEntity;
import com.example.auth.mapper.SysRoleMapper;
import com.example.auth.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 角色
 *
 * @author yang
 * @date 2021-08-23 23:44:11
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRoleEntity>
    implements SysRoleService {
  @Autowired private SysRoleMapper sysRoleMapper;

  @Override
  public List<SysRoleEntity> listRolesByUserId(String userId) {
    return sysRoleMapper.listRolesByUserId(userId);
  }
}
